//
// Created by 77873 on 2020/7/15 0015.
//
#include "jni.h"

#ifndef JNITHREAD2_JAVALISTENER_H
#define JNITHREAD2_JAVALISTENER_H


class JavaListener {


public:

    JavaVM *jvm;
    _JNIEnv *jniEnv;
    jobject  jobj;

    jmethodID  jmid;
public:

    JavaListener(JavaVM *vm,_JNIEnv *env,jobject  obj);
    ~JavaListener();

    /**
     *
     *
     *
     * @param threadType    0主线程    1 子线程
     * @param code
     * @param msg
     */
    void onError(int threadType,int code, const char *msg);

};


#endif //JNITHREAD2_JAVALISTENER_H
